<?PHP
$PageID=4;
$nohead=1;
$nojs=1;
//不需要头部
include_once('../../../core/common.php');
if(isset($_GET['PageID'])){
	$sql = "delete from pages where PageID={$_GET['PageID']}";
	$db_result=run_sql($sql,1);
	$result1 =mysqli_query( $db_result ,$sql);//执行sql
	if(mysqli_affected_rows($db_result)==1){
				$data['code'] = 0 ;
				$data['msg'] = "删除成功！" ;
				echo json_encode($data);
				}else{
				$data['code'] = 1 ;
				$data['msg'] = "删除失败,请重试！mysqli_affected_rows=".mysqli_affected_rows($db_result) ;
				echo json_encode($data);
				}
}else{
$data['code'] = 1 ;
$data['msg'] = "非法访问" ;
echo json_encode($data);
}

?>